/**
 * 
 */
package com.google.code.onlineshopping4j.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author TelmilaJ
 *
 */
@Entity
@Table(name="attribute")
public class Attribute extends BaseModel implements Serializable {
	
	private static final long serialVersionUID = -2324594548388581441L;

	@Column(name = "name", nullable=false)
	private String name;
	
	@Column(name = "code", nullable=false)
	private String code;
	
	@Column(name = "attribute_set", nullable=false)
	private AttributeSet attributeSet;
	
	@Column(name = "active", nullable=false)
	private Boolean active = true;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public AttributeSet getAttributeSet() {
		return attributeSet;
	}

	public void setAttributeSet(AttributeSet attributeSet) {
		this.attributeSet = attributeSet;
	}

	public Boolean getActive() {
		return active;
	}

	public void setActive(Boolean active) {
		this.active = active;
	}
}
